package Thread;

public class Demo1 {
    //继承Thread类，重写run方法：
    public static class MyThread extends Thread {
        @Override
        public void run() {
            System.out.println("线程启动中...");
        }
    }

    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        myThread.start();
    }
}
